package st.business.tepth.business.goods;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-02-25 15:38
 */

public interface GoodsContract {
    interface View extends BaseView {
        void showError(String msg);

        void showApplySucceed();

        void showWaiteApplySucceed();
    }

    interface Model extends BaseModel {
        Disposable applyGoods(String token, String items,
                              OnDataConvertListener<String> listener);
        Disposable waiteApply(String token, String items,
                              OnDataConvertListener<String> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void applyGoods(String token, String items);
        abstract void waiteApply(String token,String items);
    }
}
